package cn.bonoon.entities.plugins;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.bonoon.kernel.support.entities.AbstractPersistable;

/**
 * 
 * @author jackson
 *
 */
@Entity
@Table(name = "T_VACATION")
public class VacationEntity extends AbstractPersistable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1198246970028901326L;

	/**
	 * 年份
	 */
	@Column(name = "C_YEAR")
	private int year;
	/**
	 * 所有者的Id，如果是公共的假期的定义，则ownerId为0.
	 */
	@Column(name = "C_OWNERID")
	private long ownerId = 0L;

	/**
	 * <pre>
	 * 可以用来表示企业，默认为0，表示不属于任何的企业；
	 * 如果ext>0&&ownerId>0，则表示某企业的某员工的假期表。
	 * </pre>
	 */
	@Column(name = "C_EXT")
	private long ext = 0L;

	@Column(name = "C_JAN")
	private String jan;
	@Column(name = "C_FEB")
	private String feb;
	@Column(name = "C_MAR")
	private String mar;
	@Column(name = "C_APR")
	private String apr;
	@Column(name = "C_MAY")
	private String may;
	@Column(name = "C_JUN")
	private String jun;
	@Column(name = "C_JUL")
	private String jul;
	@Column(name = "C_AUG")
	private String aug;
	@Column(name = "C_SEP")
	private String sep;
	@Column(name = "C_OCT")
	private String oct;
	@Column(name = "C_NOV")
	private String nov;
	@Column(name = "C_DEC")
	private String dec;
	
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public long getOwnerId() {
		return ownerId;
	}
	public void setOwnerId(long ownerId) {
		this.ownerId = ownerId;
	}
	public long getExt() {
		return ext;
	}
	public void setExt(long ext) {
		this.ext = ext;
	}
	public String getJan() {
		return jan;
	}
	public void setJan(String jan) {
		this.jan = jan;
	}
	public String getFeb() {
		return feb;
	}
	public void setFeb(String feb) {
		this.feb = feb;
	}
	public String getMar() {
		return mar;
	}
	public void setMar(String mar) {
		this.mar = mar;
	}
	public String getApr() {
		return apr;
	}
	public void setApr(String apr) {
		this.apr = apr;
	}
	public String getMay() {
		return may;
	}
	public void setMay(String may) {
		this.may = may;
	}
	public String getJun() {
		return jun;
	}
	public void setJun(String jun) {
		this.jun = jun;
	}
	public String getJul() {
		return jul;
	}
	public void setJul(String jul) {
		this.jul = jul;
	}
	public String getAug() {
		return aug;
	}
	public void setAug(String aug) {
		this.aug = aug;
	}
	public String getSep() {
		return sep;
	}
	public void setSep(String sep) {
		this.sep = sep;
	}
	public String getOct() {
		return oct;
	}
	public void setOct(String oct) {
		this.oct = oct;
	}
	public String getNov() {
		return nov;
	}
	public void setNov(String nov) {
		this.nov = nov;
	}
	public String getDec() {
		return dec;
	}
	public void setDec(String dec) {
		this.dec = dec;
	}
	
}
